package org.vectrics.common.view;

import org.vectrics.common.html.Combo;
import org.vectrics.common.html.Row;

public class HtmlFormComboRow extends HtmlFormRow {
	private Combo combo = null;

	public HtmlFormComboRow(HtmlForm htmlForm, String paramName, boolean required) {
		super(htmlForm, paramName, required);
		this.combo = new Combo();
		this.getValueDiv().addElement(this.combo);

		combo.setClass("formComboClass");
        String elementId = paramName;
        combo.setID(elementId);
	}

	
	public HtmlFormComboRow(HtmlForm htmlForm, String paramName, Combo combo, boolean required) {
		super(htmlForm, paramName, required);
		this.combo = combo;
		this.getValueDiv().addElement(this.combo);
    	
        combo.setClass("formComboClass");
        String elementId = paramName;
        combo.setID(elementId);
		combo.setName(elementId);
	}

	public Combo getCombo() {
		return(this.combo);
	}

	
}
